/**切换创建时间**/
function custAIExportTime(btn) {
    var data_cliak = $(btn).attr("data-click");
    if(data_cliak === "selft"){
        $("#advance-daterange").removeClass("hidden");
        $("#starttime").val(moment().subtract("days",29).format("YYYY-MM-DD"));
        $("#endtime").val(moment().format("YYYY-MM-DD"));
    }else{
        $("#advance-daterange").addClass("hidden");
        $("#starttime").val('')
        $("#endtime").val('');
    }
    $("#custTime").find("button").each(function () {
        $(this).removeClass("btn-primary");
    });
    $(btn).addClass("btn-primary");
    //动态加载
    //@TODO
    $JuXue.refreshTable("bigEmpRecordsTable");
}

/**查看此批次的成功导入的客户**/
function viewAiEmpDetailRecord(btn) {
    var batchUuid = $(btn).attr("data-click");
    if (batchUuid == undefined) {$JuXue.n_danger("获取客户详情失败");return;}
    $("#bigEpExport_ids").val(batchUuid);
    $.post(ctx+"aiExport/aiExportIndex",{},function (r) {
        $("#bigEpExport-detail-div").empty().append(r).modal('show').draggable();
    });
}
/**查看次批次导入失败的客户**/
function viewFaluiAiEmpDetail(btn) {
    var exportUuid = $(btn).attr("data-click");
    if (exportUuid == undefined) {$JuXue.n_danger("获取客户详情失败");return;}
    $("#bigEpExport_ids").val(exportUuid);
    $.post(ctx+"bigEpExport/getExportFalurDetail",{},function (r) {
        $("#bigEpExport-detail-div").empty().append(r).modal('show').draggable();
    });
}





